package org.zpmis.domain.role.service.impl;

import org.zpmis.domain.role.dao.SysUserRoleRelationMapper;
import org.zpmis.domain.role.model.SysUserRoleRelation;
import org.zpmis.domain.role.service.SysUserRoleRelationService;
import org.zpmis.common.service.AbstractService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


/**
 * Created with CodeGenerator
 * Description:
 * @author  Yang
 * Date: 2021-5-31
 * Time: 14:00:27
 */
@Service
@Transactional
public class SysUserRoleRelationServiceImpl extends AbstractService<SysUserRoleRelation> implements SysUserRoleRelationService {

    @Resource
    private SysUserRoleRelationMapper sysUserRoleRelationMapper;

    @Override
    public void deleteRoleRelationsByUserId(Long sysUserId) {
        sysUserRoleRelationMapper.deleteRoleRelationsByUserId(sysUserId);
    }
}
